import {
    createRouter,
    createWebHashHistory
} from 'vue-router'
import Index from '~/pages/index.vue'
import Login from '~/pages/login.vue'
import NotFound from '~/pages/404.vue'
import Ws from '~/pages/ws.vue'
const routes = [
    {
        path: "/",
        component: Ws
    },
    {
        path: "/ws",
        component: Ws
    },
    {
        path: "/login",
        component: Login
    },
    {
        path: "/:pathMatch(.*)*",
        name: 'NotFound',
        component: NotFound
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router

